package com.biz.hunter.dao;

import com.biz.hunter.db.entity.SchDic;
import com.biz.hunter.dbutil.BaseDAO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class SchDicDAO {

    private final static String SQL_SELECALL = "select * from sch_dic where type = ?";
    public List<SchDic> getAll(String type) {
        return BaseDAO.queryForList(SchDic.class,SQL_SELECALL,type);
    }

}
